package creation.factorymethod.common;

/**
 * 具体工厂类
 *
 * @author wangjinqiang
 * @date 2019-08-04
 */
public class ConcreteCreator extends Creator {
    @Override
    public <T extends Product> T createProduct(Class<T> c) {
        try {
            return c.newInstance();
        } catch (Exception e) {
            // 异常处理
        }
        return null;
    }
}
